/*
 * Copyright 2020-2030 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
*/

package com.gitee.minimalismstyle.fresh.flowable.api.feign.model

import java.io.Serializable

/**
 * ProcessInstanceResponse
 * @author maoxiaodong
 */
class ProcessInstanceResponse : Serializable {

    /**
     *
     * example: 187
     */
    var id: String? = null

    /**
     *
     * example: http://localhost:8182/repository/process-definitions/processOne%3A1%3A4
     */
    var url: String? = null

    /**
     *
     * example: myProcessInstanceName
     */
    var name: String? = null

    /**
     *
     * example: myBusinessKey
     */
    var businessKey: String? = null

    /**
     *
     * example:
     */
    var suspended: Boolean? = null

    /**
     *
     * example:
     */
    var ended: Boolean? = null

    /**
     *
     * example: oneTaskProcess:1:158
     */
    var processDefinitionId: String? = null

    /**
     *
     * example: http://localhost:8182/repository/process-definitions/processOne%3A1%3A4
     */
    var processDefinitionUrl: String? = null

    /**
     *
     * example: A process definition name
     */
    var processDefinitionName: String? = null

    /**
     *
     * example: A process definition description
     */
    var processDefinitionDescription: String? = null

    /**
     *
     * example: processTask
     */
    var activityId: String? = null

    /**
     *
     * example: johnDoe
     */
    var startUserId: String? = null

    /**
     *
     * example: 2018-04-17T10:17:43.902+0000
     */
    var startTime: String? = null

    /**
     *
     * example:
     */
    var variables: List<RestVariable>? = null

    /**
     *
     * example: 3
     */
    var callbackId: String? = null

    /**
     *
     * example: cmmn
     */
    var callbackType: String? = null

    /**
     *
     * example: 123
     */
    var referenceId: String? = null

    /**
     *
     * example: event-to-bpmn-2.0-process
     */
    var referenceType: String? = null

    /**
     * The stage plan item instance id this process instance belongs to or null, if it is not part of a case at all or is not a child element of a stage
     * example:
     */
    var propagatedStageInstanceId: String? = null

    /**
     *
     * example: someTenantId
     */
    var tenantId: String? = null

    /**
     *
     * example:
     */
    var completed: Boolean? = null
}